#include <QApplication>
#include <QTextCodec>
#include <QtPlugin>
#include "mainwindow.h"

Q_IMPORT_PLUGIN(qcncodecs)

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QTextCodec *codec = QTextCodec::codecForName("GB2312");
    QTextCodec::setCodecForLocale(codec);
    QTextCodec::setCodecForCStrings(codec);
    QTextCodec::setCodecForTr(codec);

    MainWindow w;
    w.show();

    return a.exec();
}
